<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        SelectBooleanCheckbox
    </ui:define>

    <ui:define name="description">
        SelectBooleanCheckbox is used to select a boolean value.
    </ui:define>

    <ui:param name="documentationLink" value="/components/selectbooleancheckbox" />

    <ui:define name="implementation">

        <h:form>
            <p:growl id="msg" />

            <h:panelGrid columns="1" style="margin-bottom:10px" cellpadding="5">
                <p:selectBooleanCheckbox value="#{selectBooleanView.value1}" itemLabel="Basic"/>

                <p:selectBooleanCheckbox value="#{selectBooleanView.value2}" itemLabel="Ajax">
                    <p:ajax update="msg" listener="#{selectBooleanView.addMessage}" />
                </p:selectBooleanCheckbox>
            </h:panelGrid>

            <p:commandButton value="Submit" icon="pi pi-check" update="display" oncomplete="PF('dlg').show()" />

            <p:dialog header="Values" modal="true" resizable="false" showEffect="fade" widgetVar="dlg">
                <h:panelGrid columns="1" id="display">
                    <h:outputText value="Value 1: #{selectBooleanView.value1}" />
                    <h:outputText value="Value 2: #{selectBooleanView.value2}" />
                </h:panelGrid>
            </p:dialog>
        </h:form>
        
    </ui:define>

</ui:composition>